package cn.t12.qg.orderconsumer.controler;
import cn.t12.qg.orderconsumer.service.LocalOrderService;
import cn.t12.qg.orderconsumer.vo.GoodsVo;
import com.qg.dto.ReturnResult;
import com.qg.dto.ReturnResultUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/api")
public class QgOrderController {

    @Autowired
    private LocalOrderService localOrderService;

    @PostMapping("/queryOrderList")
    public  ReturnResult queryOrderList(String token){
        List list =localOrderService.queryOrderList(token);
        return ReturnResultUtils.returnSuccess(list);
    }

}
